<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="view">
    {% block mymeta %}
    {% endblock %}
    <meta rel="shortcut icon" href="/static/imgs/favicon.ico">
    <meta rel="bookmark" href="/static/imgs/favicon.ico" typeof="image/x-icon">
    <script type="text/javascript" src="/static/js/jquery-3.2.1.min.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css"
          integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/static/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>

    <script src="/static/js/myjs.js"></script>

    <link rel="stylesheet" type="text/css" href="/static/css/my.css">
    <title>{{ title }}</title>
    {% block customcss %}
    {% endblock %}

</head>
<body>
<div class="navbar head">
    <span id="nav-name">北京三百六十行运维系统</span>
    <div id="right-header">
        {% if username %}
{#        <span id="nav-login"><a href="/Logout/">退出登陆</a> </span>#}
{#        <span id="nav-user">当前用户：{{ username }}</span>#}
{#        <span id="nav-admin"><a href="/admin/">管理后台</a></span>#}
            <div class="dropdown usermenu">
                <span class="dropdown-toggle username" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                {{ username }}
                    <span class="caret"></span>
                </span>
                <ul class="dropdown-menu" style="margin-top: 10px;!important;" aria-labelledby="dropdownMenu1">
                    <li><a href="/admin/" target="_blank">管理后台</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="/Logout/">退出登陆</a></li>
                </ul>
            </div>


        {% else %}
        <span id="nav-login"><a href="/LoginPage/">登陆</a></span>
        {% endif %}
    </div>
</div>
<div class="main-container">
    <div class="left-container">
        <ul class="list-group">
            <a href="/index/">
                <li class="list-group-item">首页</li>
            </a>
            <a href="/update/">
                <li class="list-group-item">项目更新</li>
            </a>
            <a href="/proadd/">
                <li class="list-group-item">添加项目</li>
            </a>
            <a href="/commands/">
                <li class="list-group-item">批量命令</li>
            </a>
            <a href="/opts/">
                <li class="list-group-item">操作记录</li>
            </a>
{#            <a href="/ProList/">#}
{#                <li class="list-group-item">gitlab-api</li>#}
{#            </a>#}
        </ul>
    </div>
    {% block right-container %}


    {% endblock %}

</div>
{% block customjs %}

    <script type="text/javascript">
    </script>
{% endblock %}

</body>
</html>